#include"NamedFifo.hpp"
#include"Shm.hpp"
int main()
{
    Shm shm(pathname,projid,"user");
    //NamedFifo file(PATH,NAME);
    FileOper wakefile(PATH,NAME);
    wakefile.OpenForWrite();
    int index=0;
    char* mem=(char*)shm.VirtualAddr();
    int count=100;
    for(char i='a';i<='z';i++)
    {
        //sleep(1);
        mem[index++]=i;
        mem[index++]=i;
        mem[index]='\0';
        wakefile.WakeUp();  
        printf("成功唤醒,index：%d\n",index);
        sleep(1);      
    }
    wakefile.Close();

    return 0;
}